$(function(){
//立即执行以下内容
function UrlSearch() 
{
   var name,value; 
   var str=location.href; //取得整个地址栏
   var num=str.indexOf("?") 
   str=str.substr(num+1); //取得所有参数   stringvar.substr(start [, length ]

   var arr=str.split("&"); //各个参数放到数组里
   for(var i=0;i < arr.length;i++){ 
    num=arr[i].indexOf("="); 
    if(num>0){ 
     name=arr[i].substring(0,num);
     value=arr[i].substr(num+1);
     this[name]=value;
     } 
    } 
} 
var Request=new UrlSearch(); //实例化
var list_page_now='list_page'+Request.list_page;
document.getElementById(list_page_now).className = 'btn btn-white  active';
//立即执行结束
});
function list_page_go(list_page) 
{
   var list_page_url='index.php?m=help&c=help_home&a=home_help_list&list_page='+list_page;
   self.location=list_page_url;
}
function list_page_to() 
{
   var list_page = $('#list_page_to').val();
   var list_page_url='index.php?m=help&c=help_home&a=home_help_list&list_page='+list_page;
   self.location=list_page_url;
}
function sousuo() 
{
   var sousuokey = $('#sousuokey').val();
   var list_page_url='index.php?m=help&c=help_home&a=home_help_list&sousuokey='+sousuokey;
   self.location=list_page_url;
}
function help_all() 
{
   var help_all_url='index.php?m=help&c=help_home&a=home_help_list';
   self.location=help_all_url;
}
function help_type(help_type) 
{
   var help_type_url='index.php?m=help&c=help_home&a=home_help_list&help_type='+help_type;
   self.location=help_type_url;
}